﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using DTO;
using BUS;

public partial class Default2 : System.Web.UI.Page
{

   

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            List<GianHangDTO> listGianHang = GianHangBUS.LayDanhSachGianHangTheoTinhTrang(true);
            CollectionPager2.PageSize = 9;
            CollectionPager2.DataSource = listGianHang;
            CollectionPager2.BindToControl = dtlGianHang;
            dtlGianHang.DataSource = CollectionPager2.DataSourcePaged;

        }
    }
    protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
    {

    }
    protected void DataList1_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}
